<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>07-翻转数组</title>
</head>
<body>
    <script>
        // 翻转
        let arr = ['one', 'two', 'three'];
        console.log('原数组为:', arr);
// 原数组为: ['one', 'two', 'three']
        let reversed = arr.reverse();
        console.log('反转数组为：', reversed);
// 反转数组为：['three', 'two', 'one']
    </script>
</body>
</html>